package cn.glc.daily.life.web.service.user;

import cn.glc.daily.life.common.utils.JsonResult;
import cn.glc.daily.life.model.dto.LoginDto;
import cn.glc.daily.life.model.dto.UserSignupDto;
import cn.glc.daily.life.model.vo.user.UserVo;

/**
 * @author simon
 * @date 2020/5/28 17:24
 * @copyright:
 * @modifier
 * @motto a no talent, people who have to study hard
 */
public interface UserService {

    /**
     * 用户注册
     *
     * @param userDto
     * @return
     */
    Boolean signup(UserSignupDto userDto);

    /**
     * 统一登录接口
     *
     * @param loginDto
     * @return
     */
    JsonResult unifiedLogin(LoginDto loginDto);

    /**
     * 按用户名查询用户
     *
     * @param uid
     * @return
     */
    UserVo findDetailsByUid(Long uid);

    /**
     * 注销用户
     *
     * @param uid
     * @return
     */
    Boolean accountClose(Long uid);

}
